package de.tum.in.far.threedui.superbrickball;

import de.tum.in.far.threedui.superbrickball.engine.GameController;
import de.tum.in.far.threedui.superbrickball.engine.physics.World;
import de.tum.in.far.threedui.superbrickball.engine.physics.WorldFactory;
import de.tum.in.far.threedui.superbrickball.gui.SuperBallGame;
import de.tum.in.far.threedui.superbrickball.gui.SuperBallGameGUI;

public class GameMain {
	SuperBallGame guiInstance ;
	World world ;
	GameController controller;
	public GameMain() {
		this.world = WorldFactory.createSimpleWorld();
		this.controller = new GameController(world);
		this.guiInstance = new SuperBallGameGUI(this.controller, world);
		this.controller.setGameGUI(guiInstance);
	}
	
	void start()
	{
		controller.startGame();
	}
	
	public static void main(String[] args) {
		new GameMain().start();
	}

}
